package com.threeti.mecool.legacy.domain.model.acl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.threeti.mecool.shared.util.AbstractFlatRawTreeNode;

/** 组织机构员工树(遗留) */
@Entity
@Table(name = "MD_ORG_EMP")
public class OrgnizationEmployeeLegacy extends AbstractFlatRawTreeNode<Long> {
  @Id
  @Column(name="ORG_EMP_PK")
  private Long id;
  
  @Column(name="ORG_CODE")
  private String orgCode;
  
  @Column(name="ORG_EMP_NAME")
  private String name;//jay:this name will be somewhere replaced with emp's real name whenever do the legacy transition to employee...

  @Column(name="EMP_PK")
  private Long empId;

  @Column(name="PARENT_EMP_PK")
  private Long parentEmpId;

  @Override
  public Long getId() {
    return id;
  }

  @Override
  public Long getParentId() {
    return parentEmpId;
  }

  @Override
  public String getName() {
    return name;
  }

  public String getOrgCode() {
		return orgCode;
	}

	public Long getEmpId() {
    return empId;
  }

  @Override
  public String toString() {
    return "OrgnizationEmployeeLegacy [id=" + id + ", orgCode=" + orgCode + ", name=" + name + ", empId=" + empId + ", parentEmpId=" + parentEmpId
        + "]";
  }

  public void setName(String name) {
    this.name = name;
  }
  
  
}
